package com.kuai.common.utils;

public class KuaiStrUtils {

	public boolean isEmpty(Object obj) {
		return false;
	}
	
	public int indexOf(String str,int i) {
		return str.indexOf(i);
	}
	
	/**
	 * 前补零
	 * @param number
	 * @param len
	 * @return
	 * @author t-wencheng.ma
	 */
	public static String prezero(Object number,int len){
		KuaiAsserts.notNull(number,"number 不能为空");
		if(number instanceof  String) number = Long.valueOf((String) number);
		return String.format("%0"+len+"d", number).toString();
	}
}
